<h1>New page</h1>

<% form_for(@page) do |f| %>
	<%= f.error_messages %>

	<p>
		<%= f.label :title %><br />
		<%= f.text_field :title %>
	</p>
	<p>
		<%= f.label :author %><br />
		<%= f.text_field :author %>
	</p>
	<p>
		<%= f.label :body %><br />
		<%= f.text_area :body %>
	</p>
	<p>
		<%= f.label :permission_0, "Private" %>
		<%= f.radio_button :permission, 0 %>
		<%= f.label :permission_1, "Public" %>
		<%= f.radio_button :permission, 1 %>
	</p>
	<p>
		<%= f.submit "Create" %>
	</p>
<% end %>

<%= link_to 'Back', pages_path %>
